package com.company.management.controller.reward;

import com.company.management.domain.reward.dto.TalentUserQueryDTO;
import com.company.management.domain.reward.vo.TalentUserVO;
import com.company.management.service.reward.TalentUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:奖励
 * @author: wangbin
 * @time: 2025/3/1
 **/
@RestController
@RequestMapping("/api/user")
public class TalentUserController {
    @Autowired
    private TalentUserService talentUserService;

    /**
     * @Description: 查看奖励
     * @Author: wangbin
     * @Date: 2025/3/1 15:10
     * @return
     **/
    @PostMapping("/list")
    public ResponseEntity<List<TalentUserVO>> pageList(@RequestBody TalentUserQueryDTO talentUserQueryDTO) {
        return new ResponseEntity<>(talentUserService.findByPage(talentUserQueryDTO),HttpStatus.OK);
    }
}
